package com.book.item.controller;

import com.book.item.service.CateService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/cate")
public class CateController {
    @Autowired
    private CateService cateService;
    @RequestMapping("selOne")
    public Integer sel(String name){
        return cateService.finOne(name).getId();
    }
}
